package com.mumu.studykotlin.gra.inherit;

import org.jetbrains.annotations.NotNull;

/**
 * edie create on 2019/7/25
 */
public class Teacher extends Persion implements People {
    private String name;

    public Teacher(@NotNull String name) {
        super(name);
        this.name = name;
    }

    public Teacher(@NotNull String name, @NotNull String id) {
        super(name, id);
        this.name = name;
    }

    @Override
    public void say() {
        super.say();
        System.out.print(name);
    }

}
